package com.mine.framedemo;

import android.text.TextUtils;

import com.fgs.common.api.CommonOptions;
import com.fgs.common.api.ICommonConfig;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;

/**
 * @author fgs
 * @date 2020/10/14
 * @description
 **/
public class ApiCommonConfig implements ICommonConfig {
    @Override
    public CommonOptions configOptions() {

        String baseUrl = Config.baseUrl;
        String baseWebUrl = Config.baseWebUrl;
        String baseImageUrl = Config.baseImageUrl;


        return CommonOptions.builder()
                .baseUrl(baseUrl)
                .baseImageUrl(baseImageUrl)
                .baseWebUrl(baseWebUrl)
                .mainClass(MainActivity.class)
                .build();
    }

    @Override
    public Retrofit.Builder retrofit(Retrofit.Builder builder) {
        return builder;
    }

    @Override
    public OkHttpClient.Builder okHttpClient(OkHttpClient.Builder builder) {
        return builder;
    }
}
